<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="app">
<!--    <a v-bind:href="url">点击一下</a>-->
    <a :href="url">点击</a>
</div>

<script src="js/vue.js"></script>

<script>

    new Vue({
        el:"#app",
        data() {
            return {
                username:"",
                url:"https://www.baidu.com"
            }
        }
        // data:function () {
        //     return {
        //         username:""
        //     }
        // }
    });

</script>

</body>
</html>